// 工作通知和公告栏  notice
import { GET as get, POST as post } from '../axios.config.js'
const base = window.config.ip
const projectName = '/jx-backstage'

// 列表查询
export const selectAllBulletin = p => get(`${base}${projectName}/bulletion/selectAllBulletin`, p)

// 新增/修改
export const addBulletion = p => post(`${base}${projectName}/bulletion/addBulletion`, p)
// 详情查询
export const getBulletionDetail = p => get(`${base}${projectName}/bulletion/getBulletionDetail`, p)
// 保存阅读记录b
export const saveRead = p => post(`${base}${projectName}/bulletion/saveRead`, p)
// 取消置顶
export const canceltop = p => post(`${base}${projectName}/bulletion/canceltop`, p)
// 删除
export const delBulletion = p => post(`${base}${projectName}/bulletion/delBulletion`, p)

// 机构
export const orgAll = p => get(`${base}${projectName}/bulletion/orgAll`, p)
// 导出
export const dataExport = p => `${base}${projectName}/download/dataExport${p}`

// 新权限获取机构树
export const listOrganTreeByTenantId = p => get(`${base}${projectName}/bulletion/listOrganTreeByTenantId`, p)
